/*
 * @Descripttion: 
 * @version: 
 * @Author: turingchang
 * @Date: 2020-12-16 11:14:48
 * @LastEditors: turingchang
 * @LastEditTime: 2020-12-16 11:31:17
 */


const time =require('./utils/time');
const string =require('./utils/string');
const generator =require('./utils/generator');
const validator =require('./utils/validator');
const array =require('./utils/array');
const emoji =require('emojis-list');
const md5 =require('./utils/md5');
const number =require('./utils/number');
const enums =require('./utils/enums')

var utils ={};

utils.time =time;
utils.string =string;
utils.generator =generator;
utils.validator =validator;
utils.array =array;
utils.emoji =emoji;
utils.md5 =md5;
utils.number =number;
utils.enums =enums;



/**
 * 检查是否是一个函数
 * @param {object} arg 函数
 * @returns {boolean}
 */
utils.isFunction = function (arg) {
    return typeof arg === 'function';
}

module.exports =utils;

